package com.easylinkin.linkappapi.analyze.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easylinkin.linkappapi.analyze.entity.AnalyzeDateSource;
import com.easylinkin.linkappapi.analyze.entity.DdeviceVo;
import com.easylinkin.linkappapi.device.entity.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 设备资产表，关联两张表
 * 关联1  资产表-资产设备表
 * 关联2  资产表-资产用户表
 * Mapper 接口
 * </p>
 *
 * @author XuGuoQing
 * @since 2020-04-23
 */
public interface AnalyzeDateSourceMapper extends BaseMapper<AnalyzeDateSource> {

    IPage<Device> getDeviceByDataSourceId(IPage page, @Param("deviceVo") DdeviceVo deviceVo);

    List<Device> getDeviceByDataSourceId(@Param("deviceVo") DdeviceVo deviceVo);

    IPage<AnalyzeDateSource> getDataSourcList(IPage page, @Param("analyzeDateSource") AnalyzeDateSource analyzeDateSource);

    List<AnalyzeDateSource> getDateSources(@Param("analyzeDateSource") AnalyzeDateSource analyzeDateSource);
}
